/* 采购入库单
 */

import { postRequest, getRequest, getDownload } from '@/lib/axios'

export const returnOrderApi = {
  // 采购入库单列表
  queryReturnOrderList: (param) => {
    return getRequest('/into_order/list', param)
  },
  // 采购入库单详情
  detail: (param) => {
    return getRequest('/into_order/detail', param)
  },
  // 采购入库单详情签收
  signIn: (param) => {
    return postRequest('/into_order/sign_in', param)
  },
  // 采购入库单详情驳回
  modifyIn: (param) => {
    return postRequest('/into_order/modify', param)
  },
  // 销退入库单详情签收
  check: (param) => {
    return postRequest('/return_order/check', param)
  },
  // 调拨入库单列表
  queryTransferOrderList: (param) => {
    return getRequest('/transfer_order/in_list', param)
  },
  // 调拨入库单详情签收
  sign: (param) => {
    return postRequest('/transfer_order/sign', param)
  },
  // 入库单导出
  exportXlsx: (param) => {
    return getDownload('/into_order/exportXlsx', param)
  }

}
